import request from '@/utils/request'

/**
 * 渡币充值列表
 * @param {Object} params 
 */
export function queryRechargePage(params) {
    return request({
        url: '/badu/recharge_config/list',
        method: 'get',
        params: params
    })
}


/**
 * 渡币充值导出
 * @param {String} id 
 */
export function rechargeExport(data) {
    return request({
        url: '/badu/recharge_config/export',
        method: 'post',
        data: data
    })
}


/**
 * 渡币充值详情
 * @param {String} id 
 */
export function rechargeDetail(id) {
    return request({
        url: '/badu/recharge_config/' + id,
        method: 'get'
    })
}

/**
 * 新增渡币充值
 * @param {Object} data 
 */
export function addRecharge(data) {
    return request({
        url: '/badu/recharge_config',
        method: 'post',
        data: data
    })
}


/**
 * 编辑渡币充值
 * @param {Object} data 
 */
export function editRecharge(data) {
    return request({
        url: '/badu/recharge_config',
        method: 'put',
        data: data
    })
}


/**
 * 删除渡币充值
 * @param {String} ids 
 */
export function deleteRecharge(ids) {
    return request({
        url: '/badu/recharge_config/' + ids,
        method: 'delete',
        data: data
    })
}

